﻿namespace Basic.ScheduledTask;

public class ScheduledJobAttribute : Attribute
{
    public string Cron { get; set; }

    /// <summary>
    /// 启用补偿,错过任务补偿执行
    /// </summary>
    public bool Compensate { get; set; }

    public ScheduledJobAttribute(string cron = null)
    {
        Cron = cron;
    }

}